<!DOCTYPE html>
<html lang="en">
<head>
<title>Brook Tardigrade: BrookURLRouter: Class TBrookURLRoutes</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="generator" content="PasDoc 0.16.0">
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<link rel="stylesheet" type="text/css" href="tipuesearch/tipuesearch.css">

<link rel="StyleSheet" type="text/css" href="pasdoc.css">
</head>
<body>
<div class="container"><div class="navigation">
<h2><a href="index.html">Brook Tardigrade</a></h2><ul><li><a href="AllUnits.html">Units</a></li><li><a href="ClassHierarchy.html">Class Hierarchy</a></li><li><a href="AllClasses.html">Classes, Interfaces, Objects and Records</a></li><li><a href="AllTypes.html">Types</a></li><li><a href="AllVariables.html">Variables</a></li><li><a href="AllConstants.html">Constants</a></li><li><a href="AllFunctions.html">Functions and Procedures</a></li><li><a href="AllIdentifiers.html">Identifiers</a></li><li><form class="search-form" action="tipue_results.html"><div class="search-input"><input type="text" name="q" id="tipue_search_input" pattern=".{3,}" title="At least 3 characters" required><div class="search-button"><input type="button" id="tipue_search_button" onclick="this.form.submit();"></div></div></form>
<div style="clear: both"></div>
</li></ul></div><div class="content">
<span id="TBrookURLRoutes"></span><h1 class="cio">Class TBrookURLRoutes</h1>
<div class="sections">
<div class="one_section"><a class="section" href="#PasDoc-Description">Description</a></div><div class="one_section"><a class="section" href="#PasDoc-Hierarchy">Hierarchy</a></div><div class="one_section">Fields</div><div class="one_section"><a class="section" href="#PasDoc-Methods">Methods</a></div><div class="one_section"><a class="section" href="#PasDoc-Properties">Properties</a></div></div>
<span id="PasDoc-Description"></span><h2 class="unit">Unit</h2>
<p class="unitlink">
<a href="BrookURLRouter.html">BrookURLRouter</a></p>
<h2 class="declaration">Declaration</h2>
<p class="declaration">
<code>type TBrookURLRoutes = class(<a class="normal" href="BrookHandledClasses.TBrookHandledOwnedCollection.html">TBrookHandledOwnedCollection</a>)</code></p>
<h2 class="description">Description</h2>
<p>
Class to represent an list of URL routes.</p>
<span id="PasDoc-Hierarchy"></span><h2 class="hierarchy">Hierarchy</h2>
<ul class="hierarchy"><li class="ancestor">TObject</li>
<li class="ancestor">TPersistent</li>
<li class="ancestor">TCollection</li>
<li class="ancestor">TOwnedCollection</li>
<li class="ancestor"><a class="normal" href="BrookHandledClasses.TBrookHandledOwnedCollection.html">TBrookHandledOwnedCollection</a></li>
<li class="thisitem">TBrookURLRoutes</li></ul><h2 class="overview">Overview</h2>
<span id="PasDoc-Methods"></span><h3 class="summary">Methods</h3>
<table class="summary wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>constructor <strong><a href="BrookURLRouter.TBrookURLRoutes.html#Create">Create</a></strong>(AOwner: TPersistent); virtual;</code></td>
</tr>
<tr class="list2">
<td class="visibility"><a href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>destructor <strong><a href="BrookURLRouter.TBrookURLRoutes.html#Destroy">Destroy</a></strong>; override;</code></td>
</tr>
<tr class="list">
<td class="visibility"><a href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>class function <strong><a href="BrookURLRouter.TBrookURLRoutes.html#GetRouterClass">GetRouterClass</a></strong>: <a href="BrookURLRouter.html#TBrookURLRouteClass">TBrookURLRouteClass</a>; virtual;</code></td>
</tr>
<tr class="list2">
<td class="visibility"><a href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>function <strong><a href="BrookURLRouter.TBrookURLRoutes.html#GetEnumerator">GetEnumerator</a></strong>: <a href="BrookURLRouter.TBrookURLRoutesEnumerator.html">TBrookURLRoutesEnumerator</a>;</code></td>
</tr>
<tr class="list">
<td class="visibility"><a href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>function <strong><a href="BrookURLRouter.TBrookURLRoutes.html#NewPattern">NewPattern</a></strong>: string; virtual;</code></td>
</tr>
<tr class="list2">
<td class="visibility"><a href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>function <strong><a href="BrookURLRouter.TBrookURLRoutes.html#Add">Add</a></strong>: <a href="BrookURLRouter.TBrookURLRoute.html">TBrookURLRoute</a>; virtual;</code></td>
</tr>
<tr class="list">
<td class="visibility"><a href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>function <strong><a href="BrookURLRouter.TBrookURLRoutes.html#First">First</a></strong>: <a href="BrookURLRouter.TBrookURLRoute.html">TBrookURLRoute</a>; virtual;</code></td>
</tr>
<tr class="list2">
<td class="visibility"><a href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>function <strong><a href="BrookURLRouter.TBrookURLRoutes.html#Last">Last</a></strong>: <a href="BrookURLRouter.TBrookURLRoute.html">TBrookURLRoute</a>; virtual;</code></td>
</tr>
<tr class="list">
<td class="visibility"><a href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>function <strong><a href="BrookURLRouter.TBrookURLRoutes.html#IndexOf">IndexOf</a></strong>(const APattern: string): Integer; virtual;</code></td>
</tr>
<tr class="list2">
<td class="visibility"><a href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>function <strong><a href="BrookURLRouter.TBrookURLRoutes.html#Find">Find</a></strong>(const APattern: string): <a href="BrookURLRouter.TBrookURLRoute.html">TBrookURLRoute</a>; virtual;</code></td>
</tr>
<tr class="list">
<td class="visibility"><a href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>function <strong><a href="BrookURLRouter.TBrookURLRoutes.html#FindDefault">FindDefault</a></strong>: <a href="BrookURLRouter.TBrookURLRoute.html">TBrookURLRoute</a>; virtual;</code></td>
</tr>
<tr class="list2">
<td class="visibility"><a href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>function <strong><a href="BrookURLRouter.TBrookURLRoutes.html#Remove">Remove</a></strong>(const APattern: string): Boolean; virtual;</code></td>
</tr>
<tr class="list">
<td class="visibility"><a href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>procedure <strong><a href="BrookURLRouter.TBrookURLRoutes.html#Clear">Clear</a></strong>; virtual;</code></td>
</tr>
</table>
<span id="PasDoc-Properties"></span><h3 class="summary">Properties</h3>
<table class="summary wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>property <strong><a href="BrookURLRouter.TBrookURLRoutes.html#Items">Items</a></strong>[AIndex:Integer]: <a href="BrookURLRouter.TBrookURLRoute.html">TBrookURLRoute</a> read GetItem
      write SetItem;</code></td>
</tr>
</table>
<h2 class="description">Description</h2>
<h3 class="detail">Methods</h3>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><span id="Create"></span><code>constructor <strong>Create</strong>(AOwner: TPersistent); virtual;</code></td>
</tr>
<tr><td colspan="2">
<p>
Creates an instance of <code><a class="normal" href="BrookURLRouter.TBrookURLRoutes.html">TBrookURLRoutes</a></code>. </p>
<h6 class="description_section">Parameters</h6>
<dl class="parameters">
<dt>AOwner[in]</dt>
<dd>Routes persistent.</dd>
</dl>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><span id="Destroy"></span><code>destructor <strong>Destroy</strong>; override;</code></td>
</tr>
<tr><td colspan="2">
<p>
Frees an instance of <code><a class="normal" href="BrookURLRouter.TBrookURLRoutes.html">TBrookURLRoutes</a></code>.</p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><span id="GetRouterClass"></span><code>class function <strong>GetRouterClass</strong>: <a href="BrookURLRouter.html#TBrookURLRouteClass">TBrookURLRouteClass</a>; virtual;</code></td>
</tr>
<tr><td colspan="2">
<p>
Gets the default class for route item creation.</p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><span id="GetEnumerator"></span><code>function <strong>GetEnumerator</strong>: <a href="BrookURLRouter.TBrookURLRoutesEnumerator.html">TBrookURLRoutesEnumerator</a>;</code></td>
</tr>
<tr><td colspan="2">
<p>
Creates an enumerator to iterate the routes through <code>for..in</code>.</p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><span id="NewPattern"></span><code>function <strong>NewPattern</strong>: string; virtual;</code></td>
</tr>
<tr><td colspan="2">
<p>
Generates a new route pattern.</p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><span id="Add"></span><code>function <strong>Add</strong>: <a href="BrookURLRouter.TBrookURLRoute.html">TBrookURLRoute</a>; virtual;</code></td>
</tr>
<tr><td colspan="2">
<p>
Adds a new item to the routes list. </p>
<h6 class="description_section">Returns</h6>
<p class="return">Route item.</p></td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><span id="First"></span><code>function <strong>First</strong>: <a href="BrookURLRouter.TBrookURLRoute.html">TBrookURLRoute</a>; virtual;</code></td>
</tr>
<tr><td colspan="2">
<p>
Gets the <code>first</code> route in the routes list.</p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><span id="Last"></span><code>function <strong>Last</strong>: <a href="BrookURLRouter.TBrookURLRoute.html">TBrookURLRoute</a>; virtual;</code></td>
</tr>
<tr><td colspan="2">
<p>
Gets the <code>last</code> route in the routes list.</p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><span id="IndexOf"></span><code>function <strong>IndexOf</strong>(const APattern: string): Integer; virtual;</code></td>
</tr>
<tr><td colspan="2">
<p>
Gets the route index by its pattern.</p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><span id="Find"></span><code>function <strong>Find</strong>(const APattern: string): <a href="BrookURLRouter.TBrookURLRoute.html">TBrookURLRoute</a>; virtual;</code></td>
</tr>
<tr><td colspan="2">
<p>
Finds a route in the routes list by its pattern. </p>
<h6 class="description_section">Parameters</h6>
<dl class="parameters">
<dt>APattern[in]</dt>
<dd>Route name.</dd>
</dl>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><span id="FindDefault"></span><code>function <strong>FindDefault</strong>: <a href="BrookURLRouter.TBrookURLRoute.html">TBrookURLRoute</a>; virtual;</code></td>
</tr>
<tr><td colspan="2">
<p>
Finds a default route in the routes list.</p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><span id="Remove"></span><code>function <strong>Remove</strong>(const APattern: string): Boolean; virtual;</code></td>
</tr>
<tr><td colspan="2">
<p>
Removes a route from the routes list by its pattern. </p>
<h6 class="description_section">Parameters</h6>
<dl class="parameters">
<dt>APattern[in]</dt>
<dd>Route name.</dd>
</dl>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><span id="Clear"></span><code>procedure <strong>Clear</strong>; virtual;</code></td>
</tr>
<tr><td colspan="2">
<p>
Clears the routes list.</p>
</td></tr>
</table>
<h3 class="detail">Properties</h3>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><span id="Items"></span><code>property <strong>Items</strong>[AIndex:Integer]: <a href="BrookURLRouter.TBrookURLRoute.html">TBrookURLRoute</a> read GetItem
      write SetItem;</code></td>
</tr>
<tr><td colspan="2">
<p>
Gets/sets a route from/to the routes list by its index.</p>
</td></tr>
</table>
<hr><span class="appinfo"><em>Generated by <a href="https://pasdoc.github.io/">PasDoc 0.16.0</a>. </em>
</span>
</div></div></body></html>
